# code: PY
# time:2020/11/29
from flask import Flask, request, redirect, abort, render_template

app = Flask(__name__)

@app.route('/<is_login>/')
def index(is_login):
    if is_login == '1':
        user ={
            'username':u'17bdw',
            'age':20
        }
        return render_template('index_if.html',user = user)
    else:
        return render_template('index_for.html')

if __name__ == "__main__":
    app.run(debug=True)